package com.demo.thread;

 import com.demo.service.StagesDetailService;
 import com.demo.util.SpringUtil;
 import lombok.extern.slf4j.Slf4j;

/**
 * @Author: lantian
 * @Date: 2020/9/27
 * @Description:
 */
@Slf4j
public class RebateNotifyThread extends Thread {
	private String dodate;
	private String startHour;
	private String endHour;

	public RebateNotifyThread(String dodate,String startHour,String endHour) {
		this.dodate = dodate;
		this.startHour = startHour;
		this.endHour = endHour;
	}

	@Override
	public void run() {
		log.info("返利通知线程开始，日期：{}", dodate);
		StagesDetailService service = SpringUtil
				.getObject(StagesDetailService.class);
		service.doRebateNotify(dodate, startHour, endHour);
		log.info("返利通知线程结束，日期：{}", dodate);
	}
}
